package 算法.线性表;

/**
 * 数组反转
 */

import java.util.Arrays;

public class 字符串逆序 {
    public static void main(String[] args) {
        int[] array = {11, 22, 33, 44, 55, 66, 77};
        for (int i = 0; i < array.length / 2; i++) {
            int temp = array[i];
            array[i] = array[array.length - 1 - i];
            array[array.length - 1 - i] = temp;
        }
        System.out.println(Arrays.toString(array));
    }
}
